<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
	<jsp:directive.page contentType="text/html; charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" session="false" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Index</title>
<f:loadBundle basename="com.quydat.forum.properties.index_en" var="msg"/>
</head>
<body>

	<f:view>
	<!-- Greeting -->
		<h:outputFormat value="#{msg.greet}">
			<f:param value="#{index.user.loginName}"></f:param>
		</h:outputFormat>
		
		<!-- Display date time -->
		<h:dataTable value="#{index.categories}" var="category">
			<h:column>
				
				<h:outputText value="#{category.name}"></h:outputText>
				<h:dataTable value="#{category.subCategories}" var="subcategory">
					<h:column>
						<h:outputText value="#{subcategory.name}"></h:outputText>
						<h:form>
							<h:commandLink value="#{subcategory.name}" action="#{index.viewSubCategory}">
								
							</h:commandLink>
						</h:form>
					</h:column>
				</h:dataTable>
			</h:column>
		</h:dataTable>

	</f:view>
</body>
	</html>
</jsp:root>